package cn.juque.workflow.api.dto.taskinfo;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>ListTodoParamDTO</li>
 * </ul>
 * @date 2023-01-30 10:51:59
 **/
@Data
public class ListFinishTaskSearchDTO extends AbstractRequestDTO {

    /**
     * 处理人ID
     */
    @NotEmpty(message = "处理人不能为空")
    @Size(message = "处理人不能超过{max}个字符", max = 32)
    private String taskAssignee;

    /**
     * 标题
     */
    @Size(message = "标题不能超过{max}个字符", max = 64)
    private String title;

    /**
     * 创建时间-开始
     */
    private Date createTimeStart;

    /**
     * 创建时间-结束
     */
    private Date createTimeEnd;
}
